package org.jeecg.controller;

import org.jeecg.domain.LoginDto;
import org.jeecg.service.AppUserService;
import org.jeecg.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: 孟庆磊
 * @Description: TODO
 * @DateTime: 2025/1/2 0002 11:36
 **/
@RestController
@RequestMapping("/user")
public class LoginController {
    @Autowired
    AppUserService appUserService;
//    @CrossOrigin
    @RequestMapping("/login")
    public Result login(@RequestBody LoginDto dto){
        return appUserService.login(dto);
    }
}
